package com.yanfan.parking.result;

import lombok.Data;

/**
 * 第三方接口返回结果封装
 */
@Data
public class R {

    /**
     *  0为成功 500失败
     */
    private Integer resCode;

    /**
     * 返回信息
     */
    private String resMsg;

    public static R ok() {
        R r = new R();
        r.setResCode(0);
        r.setResMsg("上传成功！");
        return r;
    }

    public static R error() {
        R r = new R();
        r.setResCode(500);
        r.setResMsg("上传失败！");
        return r;
    }
}
